package com.qf.fmall2202.order.service;

import com.qf.fmall2202.order.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.fmall2202.order.vo.AddOrderReturnVo;

/**
 * <p>
 * 订单  服务类
 * </p>
 *
 * @author dong_
 * @since 2022-11-09
 */
public interface IOrdersService extends IService<Orders> {

    /**
     * 添加订单
     * @param cids   购物车 id 以逗号分隔的字符串 ，例如  30，31
     * @param order
     * 例如：
     * {
     * 	"actualAmount": 2,
     * 	"orderRemark": "来电蒜",
     * 	"payType": 1,
     * 	"receiverAddress": "湖北 武汉 江夏区 光谷大道77号",
     * 	"receiverMobile": "13030303300",
     * 	"receiverName": "张三",
     * 	"totalAmount": 2,
     * 	"userId": "20"
     * }
     * @return
     */
    AddOrderReturnVo add(String cids, Orders order) throws Exception;

    /**
     * 查询订单支付状态
     * @param orderId
     * @return
     */
    String status(String orderId) throws Exception;
}
